﻿@model List<GTAuto.DAL.Entities.GTModelModification>
@{
    ViewBag.Title = "ByModel";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h4 class="alert_info">
    Модификации модели  @ViewBag.ModelName <span>(@ViewBag.BrandName)</span></h4>
<!-- end of stats article -->
@using (Html.BeginForm("CategoryEdit", "Ads", FormMethod.Get, new { @class = "jNice" }))
{
    <article class="module width_full">
		
			<footer>
				<div class="submit_link">
					<input type="submit" value="Добавить категорию" class="alt_btn">
					
				</div>
			</footer>
		</article>

}
<div class="clear">
</div>
<article class="module width_full">
    <header><h3 class="tabs_involved">Модификации</h3>
    
    
    
    </header>

    <div class="tab_container">
        <div id="tab1" class="tab_content">
            <table class="tablesorter" cellspacing="0"> 
                <thead> 
                    <tr> 
                        <th>Название</th> 
                        <th></th> 
                        <th></th> 
                    </tr> 
                </thead> 
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr> 
                            <td>@item.Name</td> 
                            <td><a href=@Url.Content("~/ModelModifications/ModificationEdit/" + item.Id) class="edit">Ред.</a></td> 
                            <td><a href=@Url.Content("~/ModelModifications/Delete/" + item.Id) class="delete" onclick="if (!confirm('Вы уверены ?')) return  false;" >Удалить</a></td> 
                        </tr>
                    }
			
                </tbody> 
            </table>
        </div>
      
			
    </div>
		
</article>
<div class="clear">
</div>